# 我手写的
newList = MyNew.objects.all().filter(~Q(newType = '通知公告')).order_by('-publishDate')
  postList = set()
  postNum = 0
  for s in newList:
    if s.photo:
      postList.add(s)
      postNum += 1
    if postNum == 3: # 只截取最近的3个展报
      break

# copy的
newList = MyNew.objects.all().filter(~Q(
        newType='通知公告')).order_by('-publishDate')
    postList = set()
    postNum = 0
    for s in newList:
        if s.photo:
            postList.add(s)
            postNum += 1
        if postNum == 3:  # 只截取最近的3个展报
            break